import React from 'react'
import {Provider} from 'react-redux'
import store from '../store'
import {BrowserRouter as Router, Route} from 'react-router-dom'
import TodoApp from './TodoApp'

const Root = () => {
    return (
        <Provider store={store}>
            <Router>
                <Route path='/:filter?' component={TodoApp}/>
            </Router>
        </Provider>
    )
}

export default Root